package com.dominator.utils.sms;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dominFramework.core.typewrap.Dto;
import com.dominator.utils.exception.ApiException;

/**
 * 验证码工具类
 * @author Administrator
 *
 */
public class SmsUtils {

	
	private static Logger log = LoggerFactory.getLogger(SmsUtils.class);


	public static void sendSms(Dto dto) throws ApiException {

        log.info("--发送短信---");
        //LongJuSmsUtils.sendSms(dto);
        /**示远短信通道**/


        //LongJuSmsUtils.sendSYSms(dto);
		YunPianSmsUtils.sendYPSms(dto);
	}

	public static void checkSms( Dto dto) throws ApiException{
		log.info("--验证短信--");
		YunPianSmsUtils.checkcode(dto);
	}

	public static void sendNoticeSms( Dto dto) throws ApiException{
		log.info("--发送通知短信--");
		YunPianSmsUtils.sendNoticeSms(dto);
	}

}
